package com.chinaunicom.tree;

public class NodeData implements Comparable {
	private int data;

	public NodeData(int data) {
		super();
		this.data = data;
	}

	public int getData() {
		return data;
	}

	public void setData(int data) {
		this.data = data;
	}
	
	@Override
	public String toString() {
		return this.data + "";
	}

	@Override
	public int compareTo(Object o) {
		NodeData nodeData = (NodeData) o;
		return this.getData() - nodeData.getData();
	}

}
